package cn.wolfcode.crm.domain;

import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Getter@Setter
public class Menu {
    private Long id;
    private String text;
    private String url;
    private String sn;
    private Long parentId;
    private List<Menu> children = new ArrayList<>();



    public List<Menu> getChildren() {
        if (children.size()==0) {
            return null;
        }
        return children;
    }

}